package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class MapCategory implements OrderingCategory {

    private int beginIndex;
    private int endIndex;
    private SpecificRoutineDesignator mapFunctionSpecification;

    public MapCategory(int beginIndex, SpecificRoutineDesignator mapFunctionSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = mapFunctionSpecification.getEndIndex();
        this.mapFunctionSpecification = mapFunctionSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SpecificRoutineDesignator getMapFunctionSpecification() {
        return mapFunctionSpecification;
    }

}
